const { ref } = window.Vue

const useCount = () => {
  // 响应式的变量
  const count = ref(0)

  const handleClick = () => {
    count.value += 1
  }

  return {
    count,
    handleClick
  }
}

export default useCount